<?php

namespace McWin\Model;
use Common\Model\CommonModel;

/*
 * 	内蒙古赔率数据.
 */

class NmgK3UpLimitModel extends CommonModel {

	protected $trueTableName = 'c_uplimit_nmg_k3';
	
	/*
	*	读取 上限 数据
	*/
	public function get_Up_Limit(){
		$dd = $this -> select();
		return $dd;		
	}

	/**
	 * [reat_up_limit description]
	 * @param  [type] $wanfa [description]
	 * @param  [type] $h     [description]
	 * @return [type]        [description]
	 */
	public function reat_up_limit($wanfa,$h){
		$col = "h" . $qiu[2];
        $sql = "SELECT $col FROM c_uplimit_nmg_k3 WHERE type=\"$wanfa\"";
        $query = $this -> query($sql);
        $rows = $query -> fetch_array();
        return $rows[$col];	
	}


}